/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dao;

import java.util.List;

/**
 *
 * @author fumio
 */
public class DaoServicoFuncionario extends DaoGenerico{

    @Override
    public List consultar(String parametro, String tipo) {
        String sql = "select sf from ServicoFuncionario sf";
        if ((!parametro.equals(""))) {
            if (tipo.equals("IdFuncionario")) {
                sql = sql + " where sf.funcionario =" + parametro;
            } 
        }
        sql = sql + " order by sf.funcionario";
        
        
        return Dao.select(sql);
    }
    
}
